package reflect;

import java.io.File;

public class Test {
    public static void main(String[] args) {
        System.out.println(a(3));
    }
    public static int a(int n){
        if (n==1){
            return 1;
        }

        return n+a(--n);
    }
}
